<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button id="btn">打开新窗口</button>
    <button id="btn1">关闭窗口</button>
</body>
<script>
   var btn = document.getElementById("btn");
   var btn1 = document.getElementById("btn1");
   var NewWindow;
   btn.onclick = function(){
       //设置打开窗口的大小
       NewWindow = window.open("https://ilive.lenovo.com.cn/?f=stle","test","width=1000px,height=1000px");
   }
   btn1.onclick = function(){
       NewWindow = window.close();
   }
</script>
</html>